package com.wzdigit.wms.basic.mapper.core.basic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.basic.LocationAttr;
import com.wzdigit.wms.basic.client.response.basic.LocationAttrResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库属性 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-12-28
 */
@MyBatisRepository
public interface LocationAttrMapper extends BaseMapper<LocationAttr> {

	List<LocationAttrResponse> selectAllByLocId(@Param("locId") Integer locId);

	LocationAttr selectOneByAttrAndLocId(@Param("attr") String attr, @Param("locId") Integer locId);
	
	int deleteByLocIdAndNotId(@Param("locId") Integer locId, @Param("notDelIds") List<Integer> notDelIds);
	
	int deleteByLocId(@Param("locId") Integer locId);

	int deleteByPrimaryKey(Integer locationAttrId);

	int insert(LocationAttr record);

	LocationAttr selectByPrimaryKey(Integer locationAttrId);

	int updateByPrimaryKeySelective(LocationAttr record);

	int updateByPrimaryKey(LocationAttr record);
}